﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EntGuayasSLA.BL;
using EntGuayasSLA.BL.Archivos.Pdf;
using EntGuayasSLA.BL.Listas;
using EntGuayasSLA.BL.Listas.Criterias;
using Ext.Net;

namespace EGuayas.Web.Licenciamiento.promotor.tabs
{
    //Constantes.LParticipacionS
    public partial class pgPartSocial : pgBase
    {
       
        protected void Page_Load(object sender, EventArgs e)
        {
            try{
            if (!X.IsAjaxRequest)
            {
                CloseTabs(TabPanel1, 1);
                //var FaseId = GetSessionPage.GetSession(Constantes.LParticipacionS);
                //if (FaseId != "")
                //{
                //    stoTipo.DataSource = RequisitoFaseLista.GetRequisitoFaseLista(FaseId);
                //    stoTipo.DataBind();
                //}
                //else
                //{
                //    btnForm.Disable();
                //}
            }
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }
        

        //
        /// <summary>
        /// Inicializar constante
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnLoadPartAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
            Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
            SetCustomConfigWucLicAll(panel, SessionPage.PageLicPro, Constantes.LParticipacionS);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnActividadesAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
                Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
                SetCustomConfigWucLicAll(panel, SessionPage.PageLicPro, Constantes.LParticipacionS);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }

        }

        protected void OnLoadDocAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
                Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
                SetCustomConfigWucLicAll(panel, SessionPage.PageLicPro, Constantes.LParticipacionS);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }

    }


}